<template>
  <div>
    <h1>Mgr</h1>
    <input v-model="title" />
    <!--  可以和使用普通标签一样，使用自定义组件  -->
    <grid-table :users></grid-table>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import GridTable from './GridTable.vue'

const title = ref('neusoft')

const users = ref([
  {
    name: '张三',
    age: 18
  },
  {
    name: '李四',
    age: 19
  },
  {
    name: '王五',
    age: 20
  },
  {
    name: '赵六',
    age: 21
  },
  {
    name: '田七',
    age: 22
  }
])
</script>

<style lang="scss" scoped></style>
